// -----------------------------------------------
// Design : Muhamad Aris
// URL    : https://www.facebook.com/aris.zoldyck
// -----------------------------------------------
function showrecentposts(json) {
  var numposts = 999;
  var standardstyling = true;
  for (var i = 0; i < numposts; i++) {
    var entry = json.feed.entry[i];
    var posttitle = entry.title.$t;
	var postlink;
	var download = 'Download';
    var posturl;
    if (i == json.feed.entry.length) break;
    for (var k = 0; k < entry.link.length; k++) {
      if (entry.link[k].rel == 'alternate') {
        posturl = entry.link[k].href;
        break;
      }}
    postlink = download.link(posturl);
    if (standardstyling) document.write('<tr><td>');
    document.write(posttitle);
	if (standardstyling) document.write('</td><td style="text-align: center;">');
    document.write(postlink);}
    if (standardstyling) document.write('</td></tr>');}